#ifndef _TRIANGLE_H
#define _TRIANGLE_H

#include "Particle.h"
#include "AABB.h"

// The primitive used for collision handling
class Triangle {
public:
	Particle* p[3];
	AABB aabb;
	AABB oldAabb;
public:
	Triangle(Particle* p1, Particle* p2, Particle* p3);
	void updateAABB();
	bool collide(Particle* P);
};

#endif /* _TRIANGLE_H */
